package com.b.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.b.dao.DanmuMapper;
import com.b.domain.Danmu;
import com.b.service.DanmuService;
import java.util.List;
@Service
public class DanmuServiceImpl implements DanmuService{

    @Resource
    private DanmuMapper danmuMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return danmuMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Danmu record) {
        return danmuMapper.insert(record);
    }

    @Override
    public int insertSelective(Danmu record) {
        return danmuMapper.insertSelective(record);
    }

    @Override
    public Danmu selectByPrimaryKey(Integer id) {
        return danmuMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Danmu record) {
        return danmuMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Danmu record) {
        return danmuMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Danmu> getAll() {
        return danmuMapper.getAll();
    }
}
